package basics.character;

/**
 * 
 * @author gexj
 *
 */
public class CharacterMethod {
    public static void main(String args[]) {
    	// isLetter
        System.out.println(Character.isLetter('c'));
        System.out.println(Character.isLetter('5'));
        
        // isDigit
        System.out.println(Character.isDigit('c'));
        System.out.println(Character.isDigit('5'));
        
        // isWhitespace
        System.out.println(Character.isWhitespace('c'));
        System.out.println(Character.isWhitespace(' '));
        System.out.println(Character.isWhitespace('\n'));
        System.out.println(Character.isWhitespace('\t'));
        
        //isUpperCase
        System.out.println( Character.isUpperCase('c'));
        System.out.println( Character.isUpperCase('C'));
        
        //isLowerCase
        System.out.println( Character.isLowerCase('c'));
        System.out.println( Character.isLowerCase('C'));
        
        System.out.println(Character.toString('a'));
        System.out.println(Character.toUpperCase('A'));
        System.out.println(Character.toLowerCase('A'));
    }
}
